Pro Android 4 by Satya Komatineni & Dave MacLean

Pro Android 4 by Satya Komatineni & Dave MacLean

Author:Satya Komatineni & Dave MacLean
Language: eng
Format: epub
Publisher: Apress®
Published: 2012-02-18T16:00:00+00:00


To understand how you specify these types, you have to look at the definition (partially specified in Listing 18–2) of the AsyncTask class.

Listing 18–2. A Quick Look at the AsyncTask Class Definition

public class

AsyncTask<Params, Progress, Result>

{

//A client will call this method

AsyncTask<Params, Progress, Result>

execute(Params.... params);

//Do your work here

//Frequently trigger onProgressUpdate()

Result doInBackGround(Params... params);

//Callback: After the work is complete

void onPostExecute(Result result);



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.